[−][src]Struct melib::backends::nntp::NntpType
Fields
is_subscribed: Arc<IsSubscribedFn>
connection: Arc<FutureMutex<NntpConnection>>
server_conf: NntpServerConf
uid_store: Arc<UIDStore>
can_create_flags: Arc<Mutex<bool>>
Implementations
impl NntpType
[src]
pub fn new(
s: &AccountSettings,
is_subscribed: Box<dyn Fn(&str) -> bool + Send + Sync>,
event_consumer: BackendEventConsumer
) -> Result<Box<dyn MailBackend>>
[src]
s: &AccountSettings,
is_subscribed: Box<dyn Fn(&str) -> bool + Send + Sync>,
event_consumer: BackendEventConsumer
) -> Result<Box<dyn MailBackend>>
pub async fn nntp_mailboxes<'_>(
connection: &'_ Arc<FutureMutex<NntpConnection>>
) -> Result<()>
[src]
connection: &'_ Arc<FutureMutex<NntpConnection>>
) -> Result<()>
pub fn validate_config(s: &AccountSettings) -> Result<()>
[src]
pub fn capabilities(&self) -> Vec<String>
[src]
Trait Implementations
impl Debug for NntpType
[src]
impl MailBackend for NntpType
[src]
fn capabilities(&self) -> MailBackendCapabilities
[src]
fn fetch(
&mut self,
mailbox_hash: MailboxHash
) -> Result<Pin<Box<dyn Stream<Item = Result<Vec<Envelope>>> + Send + 'static>>>
[src]
&mut self,
mailbox_hash: MailboxHash
) -> Result<Pin<Box<dyn Stream<Item = Result<Vec<Envelope>>> + Send + 'static>>>
fn refresh(&mut self, _mailbox_hash: MailboxHash) -> ResultFuture<()>
[src]
fn mailboxes(&self) -> ResultFuture<HashMap<MailboxHash, Mailbox>>
[src]
fn is_online(&self) -> ResultFuture<()>
[src]
fn watch(&self) -> ResultFuture<()>
[src]
fn operation(&self, env_hash: EnvelopeHash) -> Result<Box<dyn BackendOp>>
[src]
fn save(
&self,
_bytes: Vec<u8>,
_mailbox_hash: MailboxHash,
_flags: Option<Flag>
) -> ResultFuture<()>
[src]
&self,
_bytes: Vec<u8>,
_mailbox_hash: MailboxHash,
_flags: Option<Flag>
) -> ResultFuture<()>
fn copy_messages(
&mut self,
_env_hashes: EnvelopeHashBatch,
_source_mailbox_hash: MailboxHash,
_destination_mailbox_hash: MailboxHash,
_move_: bool
) -> ResultFuture<()>
[src]
&mut self,
_env_hashes: EnvelopeHashBatch,
_source_mailbox_hash: MailboxHash,
_destination_mailbox_hash: MailboxHash,
_move_: bool
) -> ResultFuture<()>
fn set_flags(
&mut self,
_env_hashes: EnvelopeHashBatch,
_mailbox_hash: MailboxHash,
_flags: SmallVec<[(Result<Flag, String>, bool); 8]>
) -> ResultFuture<()>
[src]
&mut self,
_env_hashes: EnvelopeHashBatch,
_mailbox_hash: MailboxHash,
_flags: SmallVec<[(Result<Flag, String>, bool); 8]>
) -> ResultFuture<()>
fn delete_messages(
&mut self,
_env_hashes: EnvelopeHashBatch,
_mailbox_hash: MailboxHash
) -> ResultFuture<()>
[src]
&mut self,
_env_hashes: EnvelopeHashBatch,
_mailbox_hash: MailboxHash
) -> ResultFuture<()>
fn tags(&self) -> Option<Arc<RwLock<BTreeMap<u64, String>>>>
[src]
fn as_any(&self) -> &dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn create_mailbox(
&mut self,
_path: String
) -> ResultFuture<(MailboxHash, HashMap<MailboxHash, Mailbox>)>
[src]
&mut self,
_path: String
) -> ResultFuture<(MailboxHash, HashMap<MailboxHash, Mailbox>)>
fn delete_mailbox(
&mut self,
_mailbox_hash: MailboxHash
) -> ResultFuture<HashMap<MailboxHash, Mailbox>>
[src]
&mut self,
_mailbox_hash: MailboxHash
) -> ResultFuture<HashMap<MailboxHash, Mailbox>>
fn set_mailbox_subscription(
&mut self,
_mailbox_hash: MailboxHash,
_new_val: bool
) -> ResultFuture<()>
[src]
&mut self,
_mailbox_hash: MailboxHash,
_new_val: bool
) -> ResultFuture<()>
fn rename_mailbox(
&mut self,
_mailbox_hash: MailboxHash,
_new_path: String
) -> ResultFuture<Mailbox>
[src]
&mut self,
_mailbox_hash: MailboxHash,
_new_path: String
) -> ResultFuture<Mailbox>
fn set_mailbox_permissions(
&mut self,
_mailbox_hash: MailboxHash,
_val: MailboxPermissions
) -> ResultFuture<()>
[src]
&mut self,
_mailbox_hash: MailboxHash,
_val: MailboxPermissions
) -> ResultFuture<()>
fn search(
&self,
_query: Query,
_mailbox_hash: Option<MailboxHash>
) -> ResultFuture<SmallVec<[EnvelopeHash; 512]>>
[src]
&self,
_query: Query,
_mailbox_hash: Option<MailboxHash>
) -> ResultFuture<SmallVec<[EnvelopeHash; 512]>>
Auto Trait Implementations
impl !RefUnwindSafe for NntpType
impl Send for NntpType
impl Sync for NntpType
impl Unpin for NntpType
impl !UnwindSafe for NntpType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,