pub enum DocsProtocol {
Show 26 variants
Open(OpenRequest),
Close(CloseRequest),
Status(StatusRequest),
List(ListRequest),
Create(CreateRequest),
Drop(DropRequest),
Import(ImportRequest),
Set(SetRequest),
SetHash(SetHashRequest),
Get(GetManyRequest),
GetExact(GetExactRequest),
Del(DelRequest),
StartSync(StartSyncRequest),
Leave(LeaveRequest),
Share(ShareRequest),
Subscribe(SubscribeRequest),
GetDownloadPolicy(GetDownloadPolicyRequest),
SetDownloadPolicy(SetDownloadPolicyRequest),
GetSyncPeers(GetSyncPeersRequest),
AuthorList(AuthorListRequest),
AuthorCreate(AuthorCreateRequest),
AuthorGetDefault(AuthorGetDefaultRequest),
AuthorSetDefault(AuthorSetDefaultRequest),
AuthorImport(AuthorImportRequest),
AuthorExport(AuthorExportRequest),
AuthorDelete(AuthorDeleteRequest),
}
Variants§
Open(OpenRequest)
Close(CloseRequest)
Status(StatusRequest)
List(ListRequest)
Create(CreateRequest)
Drop(DropRequest)
Import(ImportRequest)
Set(SetRequest)
SetHash(SetHashRequest)
Get(GetManyRequest)
GetExact(GetExactRequest)
Del(DelRequest)
StartSync(StartSyncRequest)
Leave(LeaveRequest)
Subscribe(SubscribeRequest)
GetDownloadPolicy(GetDownloadPolicyRequest)
SetDownloadPolicy(SetDownloadPolicyRequest)
GetSyncPeers(GetSyncPeersRequest)
AuthorList(AuthorListRequest)
AuthorCreate(AuthorCreateRequest)
AuthorGetDefault(AuthorGetDefaultRequest)
AuthorSetDefault(AuthorSetDefaultRequest)
AuthorImport(AuthorImportRequest)
AuthorExport(AuthorExportRequest)
AuthorDelete(AuthorDeleteRequest)
Trait Implementations§
Source§impl Debug for DocsProtocol
impl Debug for DocsProtocol
Source§impl<'de> Deserialize<'de> for DocsProtocol
impl<'de> Deserialize<'de> for DocsProtocol
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<AuthorCreateRequest> for DocsProtocol
impl From<AuthorCreateRequest> for DocsProtocol
Source§fn from(value: AuthorCreateRequest) -> Self
fn from(value: AuthorCreateRequest) -> Self
Converts to this type from the input type.
Source§impl From<AuthorDeleteRequest> for DocsProtocol
impl From<AuthorDeleteRequest> for DocsProtocol
Source§fn from(value: AuthorDeleteRequest) -> Self
fn from(value: AuthorDeleteRequest) -> Self
Converts to this type from the input type.
Source§impl From<AuthorExportRequest> for DocsProtocol
impl From<AuthorExportRequest> for DocsProtocol
Source§fn from(value: AuthorExportRequest) -> Self
fn from(value: AuthorExportRequest) -> Self
Converts to this type from the input type.
Source§impl From<AuthorGetDefaultRequest> for DocsProtocol
impl From<AuthorGetDefaultRequest> for DocsProtocol
Source§fn from(value: AuthorGetDefaultRequest) -> Self
fn from(value: AuthorGetDefaultRequest) -> Self
Converts to this type from the input type.
Source§impl From<AuthorImportRequest> for DocsProtocol
impl From<AuthorImportRequest> for DocsProtocol
Source§fn from(value: AuthorImportRequest) -> Self
fn from(value: AuthorImportRequest) -> Self
Converts to this type from the input type.
Source§impl From<AuthorListRequest> for DocsProtocol
impl From<AuthorListRequest> for DocsProtocol
Source§fn from(value: AuthorListRequest) -> Self
fn from(value: AuthorListRequest) -> Self
Converts to this type from the input type.
Source§impl From<AuthorSetDefaultRequest> for DocsProtocol
impl From<AuthorSetDefaultRequest> for DocsProtocol
Source§fn from(value: AuthorSetDefaultRequest) -> Self
fn from(value: AuthorSetDefaultRequest) -> Self
Converts to this type from the input type.
Source§impl From<CloseRequest> for DocsProtocol
impl From<CloseRequest> for DocsProtocol
Source§fn from(value: CloseRequest) -> Self
fn from(value: CloseRequest) -> Self
Converts to this type from the input type.
Source§impl From<CreateRequest> for DocsProtocol
impl From<CreateRequest> for DocsProtocol
Source§fn from(value: CreateRequest) -> Self
fn from(value: CreateRequest) -> Self
Converts to this type from the input type.
Source§impl From<DelRequest> for DocsProtocol
impl From<DelRequest> for DocsProtocol
Source§fn from(value: DelRequest) -> Self
fn from(value: DelRequest) -> Self
Converts to this type from the input type.
Source§impl From<DropRequest> for DocsProtocol
impl From<DropRequest> for DocsProtocol
Source§fn from(value: DropRequest) -> Self
fn from(value: DropRequest) -> Self
Converts to this type from the input type.
Source§impl From<GetDownloadPolicyRequest> for DocsProtocol
impl From<GetDownloadPolicyRequest> for DocsProtocol
Source§fn from(value: GetDownloadPolicyRequest) -> Self
fn from(value: GetDownloadPolicyRequest) -> Self
Converts to this type from the input type.
Source§impl From<GetExactRequest> for DocsProtocol
impl From<GetExactRequest> for DocsProtocol
Source§fn from(value: GetExactRequest) -> Self
fn from(value: GetExactRequest) -> Self
Converts to this type from the input type.
Source§impl From<GetManyRequest> for DocsProtocol
impl From<GetManyRequest> for DocsProtocol
Source§fn from(value: GetManyRequest) -> Self
fn from(value: GetManyRequest) -> Self
Converts to this type from the input type.
Source§impl From<GetSyncPeersRequest> for DocsProtocol
impl From<GetSyncPeersRequest> for DocsProtocol
Source§fn from(value: GetSyncPeersRequest) -> Self
fn from(value: GetSyncPeersRequest) -> Self
Converts to this type from the input type.
Source§impl From<ImportRequest> for DocsProtocol
impl From<ImportRequest> for DocsProtocol
Source§fn from(value: ImportRequest) -> Self
fn from(value: ImportRequest) -> Self
Converts to this type from the input type.
Source§impl From<LeaveRequest> for DocsProtocol
impl From<LeaveRequest> for DocsProtocol
Source§fn from(value: LeaveRequest) -> Self
fn from(value: LeaveRequest) -> Self
Converts to this type from the input type.
Source§impl From<ListRequest> for DocsProtocol
impl From<ListRequest> for DocsProtocol
Source§fn from(value: ListRequest) -> Self
fn from(value: ListRequest) -> Self
Converts to this type from the input type.
Source§impl From<OpenRequest> for DocsProtocol
impl From<OpenRequest> for DocsProtocol
Source§fn from(value: OpenRequest) -> Self
fn from(value: OpenRequest) -> Self
Converts to this type from the input type.
Source§impl From<SetDownloadPolicyRequest> for DocsProtocol
impl From<SetDownloadPolicyRequest> for DocsProtocol
Source§fn from(value: SetDownloadPolicyRequest) -> Self
fn from(value: SetDownloadPolicyRequest) -> Self
Converts to this type from the input type.
Source§impl From<SetHashRequest> for DocsProtocol
impl From<SetHashRequest> for DocsProtocol
Source§fn from(value: SetHashRequest) -> Self
fn from(value: SetHashRequest) -> Self
Converts to this type from the input type.
Source§impl From<SetRequest> for DocsProtocol
impl From<SetRequest> for DocsProtocol
Source§fn from(value: SetRequest) -> Self
fn from(value: SetRequest) -> Self
Converts to this type from the input type.
Source§fn from(value: ShareRequest) -> Self
fn from(value: ShareRequest) -> Self
Converts to this type from the input type.
Source§impl From<StartSyncRequest> for DocsProtocol
impl From<StartSyncRequest> for DocsProtocol
Source§fn from(value: StartSyncRequest) -> Self
fn from(value: StartSyncRequest) -> Self
Converts to this type from the input type.
Source§impl From<StatusRequest> for DocsProtocol
impl From<StatusRequest> for DocsProtocol
Source§fn from(value: StatusRequest) -> Self
fn from(value: StatusRequest) -> Self
Converts to this type from the input type.
Source§impl From<SubscribeRequest> for DocsProtocol
impl From<SubscribeRequest> for DocsProtocol
Source§fn from(value: SubscribeRequest) -> Self
fn from(value: SubscribeRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for DocsProtocol
impl RefUnwindSafe for DocsProtocol
impl Send for DocsProtocol
impl Sync for DocsProtocol
impl Unpin for DocsProtocol
impl UnwindSafe for DocsProtocol
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