pub enum DocsMessage {
Show 26 variants
Open(WithChannels<OpenRequest, DocsProtocol>),
Close(WithChannels<CloseRequest, DocsProtocol>),
Status(WithChannels<StatusRequest, DocsProtocol>),
List(WithChannels<ListRequest, DocsProtocol>),
Create(WithChannels<CreateRequest, DocsProtocol>),
Drop(WithChannels<DropRequest, DocsProtocol>),
Import(WithChannels<ImportRequest, DocsProtocol>),
Set(WithChannels<SetRequest, DocsProtocol>),
SetHash(WithChannels<SetHashRequest, DocsProtocol>),
Get(WithChannels<GetManyRequest, DocsProtocol>),
GetExact(WithChannels<GetExactRequest, DocsProtocol>),
Del(WithChannels<DelRequest, DocsProtocol>),
StartSync(WithChannels<StartSyncRequest, DocsProtocol>),
Leave(WithChannels<LeaveRequest, DocsProtocol>),
Share(WithChannels<ShareRequest, DocsProtocol>),
Subscribe(WithChannels<SubscribeRequest, DocsProtocol>),
GetDownloadPolicy(WithChannels<GetDownloadPolicyRequest, DocsProtocol>),
SetDownloadPolicy(WithChannels<SetDownloadPolicyRequest, DocsProtocol>),
GetSyncPeers(WithChannels<GetSyncPeersRequest, DocsProtocol>),
AuthorList(WithChannels<AuthorListRequest, DocsProtocol>),
AuthorCreate(WithChannels<AuthorCreateRequest, DocsProtocol>),
AuthorGetDefault(WithChannels<AuthorGetDefaultRequest, DocsProtocol>),
AuthorSetDefault(WithChannels<AuthorSetDefaultRequest, DocsProtocol>),
AuthorImport(WithChannels<AuthorImportRequest, DocsProtocol>),
AuthorExport(WithChannels<AuthorExportRequest, DocsProtocol>),
AuthorDelete(WithChannels<AuthorDeleteRequest, DocsProtocol>),
}Expand description
Message enum for DocsProtocol
Variants§
Open(WithChannels<OpenRequest, DocsProtocol>)
Close(WithChannels<CloseRequest, DocsProtocol>)
Status(WithChannels<StatusRequest, DocsProtocol>)
List(WithChannels<ListRequest, DocsProtocol>)
Create(WithChannels<CreateRequest, DocsProtocol>)
Drop(WithChannels<DropRequest, DocsProtocol>)
Import(WithChannels<ImportRequest, DocsProtocol>)
Set(WithChannels<SetRequest, DocsProtocol>)
SetHash(WithChannels<SetHashRequest, DocsProtocol>)
Get(WithChannels<GetManyRequest, DocsProtocol>)
GetExact(WithChannels<GetExactRequest, DocsProtocol>)
Del(WithChannels<DelRequest, DocsProtocol>)
StartSync(WithChannels<StartSyncRequest, DocsProtocol>)
Leave(WithChannels<LeaveRequest, DocsProtocol>)
Subscribe(WithChannels<SubscribeRequest, DocsProtocol>)
GetDownloadPolicy(WithChannels<GetDownloadPolicyRequest, DocsProtocol>)
SetDownloadPolicy(WithChannels<SetDownloadPolicyRequest, DocsProtocol>)
GetSyncPeers(WithChannels<GetSyncPeersRequest, DocsProtocol>)
AuthorList(WithChannels<AuthorListRequest, DocsProtocol>)
AuthorCreate(WithChannels<AuthorCreateRequest, DocsProtocol>)
AuthorGetDefault(WithChannels<AuthorGetDefaultRequest, DocsProtocol>)
AuthorSetDefault(WithChannels<AuthorSetDefaultRequest, DocsProtocol>)
AuthorImport(WithChannels<AuthorImportRequest, DocsProtocol>)
AuthorExport(WithChannels<AuthorExportRequest, DocsProtocol>)
AuthorDelete(WithChannels<AuthorDeleteRequest, DocsProtocol>)
Implementations§
Source§impl DocsMessage
impl DocsMessage
Sourcepub fn parent_span(&self) -> Span
pub fn parent_span(&self) -> Span
Get the parent span of the message
Trait Implementations§
Source§impl Debug for DocsMessage
impl Debug for DocsMessage
Source§impl From<WithChannels<AuthorCreateRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<AuthorCreateRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<AuthorCreateRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<AuthorCreateRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<AuthorDeleteRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<AuthorDeleteRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<AuthorDeleteRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<AuthorDeleteRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<AuthorExportRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<AuthorExportRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<AuthorExportRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<AuthorExportRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<AuthorGetDefaultRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<AuthorGetDefaultRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<AuthorGetDefaultRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<AuthorGetDefaultRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<AuthorImportRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<AuthorImportRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<AuthorImportRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<AuthorImportRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<AuthorListRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<AuthorListRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<AuthorListRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<AuthorListRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<AuthorSetDefaultRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<AuthorSetDefaultRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<AuthorSetDefaultRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<AuthorSetDefaultRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<CloseRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<CloseRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<CloseRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<CloseRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<CreateRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<CreateRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<CreateRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<CreateRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<DelRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<DelRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<DelRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<DelRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<DropRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<DropRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<DropRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<DropRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<GetDownloadPolicyRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<GetDownloadPolicyRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<GetDownloadPolicyRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<GetDownloadPolicyRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<GetExactRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<GetExactRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<GetExactRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<GetExactRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<GetManyRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<GetManyRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<GetManyRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<GetManyRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<GetSyncPeersRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<GetSyncPeersRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<GetSyncPeersRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<GetSyncPeersRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<ImportRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<ImportRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<ImportRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<ImportRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<LeaveRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<LeaveRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<LeaveRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<LeaveRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<ListRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<ListRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<ListRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<ListRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<OpenRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<OpenRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<OpenRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<OpenRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<SetDownloadPolicyRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<SetDownloadPolicyRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<SetDownloadPolicyRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<SetDownloadPolicyRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<SetHashRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<SetHashRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<SetHashRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<SetHashRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<SetRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<SetRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<SetRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<SetRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§fn from(value: WithChannels<ShareRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<ShareRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<StartSyncRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<StartSyncRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<StartSyncRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<StartSyncRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<StatusRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<StatusRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<StatusRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<StatusRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Source§impl From<WithChannels<SubscribeRequest, DocsProtocol>> for DocsMessage
impl From<WithChannels<SubscribeRequest, DocsProtocol>> for DocsMessage
Source§fn from(value: WithChannels<SubscribeRequest, DocsProtocol>) -> Self
fn from(value: WithChannels<SubscribeRequest, DocsProtocol>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for DocsMessage
impl !RefUnwindSafe for DocsMessage
impl Send for DocsMessage
impl Sync for DocsMessage
impl Unpin for DocsMessage
impl !UnwindSafe for DocsMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more