pub enum Request {
Show 28 variants
Open(OpenRequest),
Close(CloseRequest),
Status(StatusRequest),
List(DocListRequest),
Create(CreateRequest),
Drop(DropRequest),
Import(ImportRequest),
Set(SetRequest),
SetHash(SetHashRequest),
Get(GetManyRequest),
GetExact(GetExactRequest),
ImportFile(ImportFileRequest),
ExportFile(ExportFileRequest),
Del(DelRequest),
StartSync(StartSyncRequest),
Leave(LeaveRequest),
Share(ShareRequest),
Subscribe(DocSubscribeRequest),
GetDownloadPolicy(GetDownloadPolicyRequest),
SetDownloadPolicy(SetDownloadPolicyRequest),
GetSyncPeers(GetSyncPeersRequest),
AuthorList(AuthorListRequest),
AuthorCreate(AuthorCreateRequest),
AuthorGetDefault(AuthorGetDefaultRequest),
AuthorSetDefault(AuthorSetDefaultRequest),
AuthorImport(AuthorImportRequest),
AuthorExport(AuthorExportRequest),
AuthorDelete(AuthorDeleteRequest),
}
Available on crate feature
rpc
only.Variants§
Open(OpenRequest)
Close(CloseRequest)
Status(StatusRequest)
List(DocListRequest)
Create(CreateRequest)
Drop(DropRequest)
Import(ImportRequest)
Set(SetRequest)
SetHash(SetHashRequest)
Get(GetManyRequest)
GetExact(GetExactRequest)
ImportFile(ImportFileRequest)
ExportFile(ExportFileRequest)
Del(DelRequest)
StartSync(StartSyncRequest)
Leave(LeaveRequest)
Subscribe(DocSubscribeRequest)
GetDownloadPolicy(GetDownloadPolicyRequest)
SetDownloadPolicy(SetDownloadPolicyRequest)
GetSyncPeers(GetSyncPeersRequest)
AuthorList(AuthorListRequest)
AuthorCreate(AuthorCreateRequest)
AuthorGetDefault(AuthorGetDefaultRequest)
AuthorSetDefault(AuthorSetDefaultRequest)
AuthorImport(AuthorImportRequest)
AuthorExport(AuthorExportRequest)
AuthorDelete(AuthorDeleteRequest)
Trait Implementations§
source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
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 Request
impl From<AuthorCreateRequest> for Request
source§fn from(value: AuthorCreateRequest) -> Self
fn from(value: AuthorCreateRequest) -> Self
Converts to this type from the input type.
source§impl From<AuthorDeleteRequest> for Request
impl From<AuthorDeleteRequest> for Request
source§fn from(value: AuthorDeleteRequest) -> Self
fn from(value: AuthorDeleteRequest) -> Self
Converts to this type from the input type.
source§impl From<AuthorExportRequest> for Request
impl From<AuthorExportRequest> for Request
source§fn from(value: AuthorExportRequest) -> Self
fn from(value: AuthorExportRequest) -> Self
Converts to this type from the input type.
source§impl From<AuthorGetDefaultRequest> for Request
impl From<AuthorGetDefaultRequest> for Request
source§fn from(value: AuthorGetDefaultRequest) -> Self
fn from(value: AuthorGetDefaultRequest) -> Self
Converts to this type from the input type.
source§impl From<AuthorImportRequest> for Request
impl From<AuthorImportRequest> for Request
source§fn from(value: AuthorImportRequest) -> Self
fn from(value: AuthorImportRequest) -> Self
Converts to this type from the input type.
source§impl From<AuthorListRequest> for Request
impl From<AuthorListRequest> for Request
source§fn from(value: AuthorListRequest) -> Self
fn from(value: AuthorListRequest) -> Self
Converts to this type from the input type.
source§impl From<AuthorSetDefaultRequest> for Request
impl From<AuthorSetDefaultRequest> for Request
source§fn from(value: AuthorSetDefaultRequest) -> Self
fn from(value: AuthorSetDefaultRequest) -> Self
Converts to this type from the input type.
source§impl From<CloseRequest> for Request
impl From<CloseRequest> for Request
source§fn from(value: CloseRequest) -> Self
fn from(value: CloseRequest) -> Self
Converts to this type from the input type.
source§impl From<CreateRequest> for Request
impl From<CreateRequest> for Request
source§fn from(value: CreateRequest) -> Self
fn from(value: CreateRequest) -> Self
Converts to this type from the input type.
source§impl From<DelRequest> for Request
impl From<DelRequest> for Request
source§fn from(value: DelRequest) -> Self
fn from(value: DelRequest) -> Self
Converts to this type from the input type.
source§impl From<DocListRequest> for Request
impl From<DocListRequest> for Request
source§fn from(value: DocListRequest) -> Self
fn from(value: DocListRequest) -> Self
Converts to this type from the input type.
source§impl From<DocSubscribeRequest> for Request
impl From<DocSubscribeRequest> for Request
source§fn from(value: DocSubscribeRequest) -> Self
fn from(value: DocSubscribeRequest) -> Self
Converts to this type from the input type.
source§impl From<DropRequest> for Request
impl From<DropRequest> for Request
source§fn from(value: DropRequest) -> Self
fn from(value: DropRequest) -> Self
Converts to this type from the input type.
source§impl From<ExportFileRequest> for Request
impl From<ExportFileRequest> for Request
source§fn from(value: ExportFileRequest) -> Self
fn from(value: ExportFileRequest) -> Self
Converts to this type from the input type.
source§impl From<GetDownloadPolicyRequest> for Request
impl From<GetDownloadPolicyRequest> for Request
source§fn from(value: GetDownloadPolicyRequest) -> Self
fn from(value: GetDownloadPolicyRequest) -> Self
Converts to this type from the input type.
source§impl From<GetExactRequest> for Request
impl From<GetExactRequest> for Request
source§fn from(value: GetExactRequest) -> Self
fn from(value: GetExactRequest) -> Self
Converts to this type from the input type.
source§impl From<GetManyRequest> for Request
impl From<GetManyRequest> for Request
source§fn from(value: GetManyRequest) -> Self
fn from(value: GetManyRequest) -> Self
Converts to this type from the input type.
source§impl From<GetSyncPeersRequest> for Request
impl From<GetSyncPeersRequest> for Request
source§fn from(value: GetSyncPeersRequest) -> Self
fn from(value: GetSyncPeersRequest) -> Self
Converts to this type from the input type.
source§impl From<ImportFileRequest> for Request
impl From<ImportFileRequest> for Request
source§fn from(value: ImportFileRequest) -> Self
fn from(value: ImportFileRequest) -> Self
Converts to this type from the input type.
source§impl From<ImportRequest> for Request
impl From<ImportRequest> for Request
source§fn from(value: ImportRequest) -> Self
fn from(value: ImportRequest) -> Self
Converts to this type from the input type.
source§impl From<LeaveRequest> for Request
impl From<LeaveRequest> for Request
source§fn from(value: LeaveRequest) -> Self
fn from(value: LeaveRequest) -> Self
Converts to this type from the input type.
source§impl From<OpenRequest> for Request
impl From<OpenRequest> for Request
source§fn from(value: OpenRequest) -> Self
fn from(value: OpenRequest) -> Self
Converts to this type from the input type.
source§impl From<SetDownloadPolicyRequest> for Request
impl From<SetDownloadPolicyRequest> for Request
source§fn from(value: SetDownloadPolicyRequest) -> Self
fn from(value: SetDownloadPolicyRequest) -> Self
Converts to this type from the input type.
source§impl From<SetHashRequest> for Request
impl From<SetHashRequest> for Request
source§fn from(value: SetHashRequest) -> Self
fn from(value: SetHashRequest) -> Self
Converts to this type from the input type.
source§impl From<SetRequest> for Request
impl From<SetRequest> for Request
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 Request
impl From<StartSyncRequest> for Request
source§fn from(value: StartSyncRequest) -> Self
fn from(value: StartSyncRequest) -> Self
Converts to this type from the input type.
source§impl From<StatusRequest> for Request
impl From<StatusRequest> for Request
source§fn from(value: StatusRequest) -> Self
fn from(value: StatusRequest) -> Self
Converts to this type from the input type.
source§impl<'a> TryFrom<&'a Request> for &'a AuthorCreateRequest
impl<'a> TryFrom<&'a Request> for &'a AuthorCreateRequest
source§impl<'a> TryFrom<&'a Request> for &'a AuthorDeleteRequest
impl<'a> TryFrom<&'a Request> for &'a AuthorDeleteRequest
source§impl<'a> TryFrom<&'a Request> for &'a AuthorExportRequest
impl<'a> TryFrom<&'a Request> for &'a AuthorExportRequest
source§impl<'a> TryFrom<&'a Request> for &'a AuthorGetDefaultRequest
impl<'a> TryFrom<&'a Request> for &'a AuthorGetDefaultRequest
source§impl<'a> TryFrom<&'a Request> for &'a AuthorImportRequest
impl<'a> TryFrom<&'a Request> for &'a AuthorImportRequest
source§impl<'a> TryFrom<&'a Request> for &'a AuthorListRequest
impl<'a> TryFrom<&'a Request> for &'a AuthorListRequest
source§impl<'a> TryFrom<&'a Request> for &'a AuthorSetDefaultRequest
impl<'a> TryFrom<&'a Request> for &'a AuthorSetDefaultRequest
source§impl<'a> TryFrom<&'a Request> for &'a CloseRequest
impl<'a> TryFrom<&'a Request> for &'a CloseRequest
source§impl<'a> TryFrom<&'a Request> for &'a CreateRequest
impl<'a> TryFrom<&'a Request> for &'a CreateRequest
source§impl<'a> TryFrom<&'a Request> for &'a DelRequest
impl<'a> TryFrom<&'a Request> for &'a DelRequest
source§impl<'a> TryFrom<&'a Request> for &'a DocListRequest
impl<'a> TryFrom<&'a Request> for &'a DocListRequest
source§impl<'a> TryFrom<&'a Request> for &'a DocSubscribeRequest
impl<'a> TryFrom<&'a Request> for &'a DocSubscribeRequest
source§impl<'a> TryFrom<&'a Request> for &'a DropRequest
impl<'a> TryFrom<&'a Request> for &'a DropRequest
source§impl<'a> TryFrom<&'a Request> for &'a ExportFileRequest
impl<'a> TryFrom<&'a Request> for &'a ExportFileRequest
source§impl<'a> TryFrom<&'a Request> for &'a GetDownloadPolicyRequest
impl<'a> TryFrom<&'a Request> for &'a GetDownloadPolicyRequest
source§impl<'a> TryFrom<&'a Request> for &'a GetExactRequest
impl<'a> TryFrom<&'a Request> for &'a GetExactRequest
source§impl<'a> TryFrom<&'a Request> for &'a GetManyRequest
impl<'a> TryFrom<&'a Request> for &'a GetManyRequest
source§impl<'a> TryFrom<&'a Request> for &'a GetSyncPeersRequest
impl<'a> TryFrom<&'a Request> for &'a GetSyncPeersRequest
source§impl<'a> TryFrom<&'a Request> for &'a ImportFileRequest
impl<'a> TryFrom<&'a Request> for &'a ImportFileRequest
source§impl<'a> TryFrom<&'a Request> for &'a ImportRequest
impl<'a> TryFrom<&'a Request> for &'a ImportRequest
source§impl<'a> TryFrom<&'a Request> for &'a LeaveRequest
impl<'a> TryFrom<&'a Request> for &'a LeaveRequest
source§impl<'a> TryFrom<&'a Request> for &'a OpenRequest
impl<'a> TryFrom<&'a Request> for &'a OpenRequest
source§impl<'a> TryFrom<&'a Request> for &'a SetDownloadPolicyRequest
impl<'a> TryFrom<&'a Request> for &'a SetDownloadPolicyRequest
source§impl<'a> TryFrom<&'a Request> for &'a SetHashRequest
impl<'a> TryFrom<&'a Request> for &'a SetHashRequest
source§impl<'a> TryFrom<&'a Request> for &'a SetRequest
impl<'a> TryFrom<&'a Request> for &'a SetRequest
source§impl<'a> TryFrom<&'a Request> for &'a StartSyncRequest
impl<'a> TryFrom<&'a Request> for &'a StartSyncRequest
source§impl<'a> TryFrom<&'a Request> for &'a StatusRequest
impl<'a> TryFrom<&'a Request> for &'a StatusRequest
source§impl TryFrom<Request> for AuthorCreateRequest
impl TryFrom<Request> for AuthorCreateRequest
source§impl TryFrom<Request> for AuthorDeleteRequest
impl TryFrom<Request> for AuthorDeleteRequest
source§impl TryFrom<Request> for AuthorExportRequest
impl TryFrom<Request> for AuthorExportRequest
source§impl TryFrom<Request> for AuthorGetDefaultRequest
impl TryFrom<Request> for AuthorGetDefaultRequest
source§impl TryFrom<Request> for AuthorImportRequest
impl TryFrom<Request> for AuthorImportRequest
source§impl TryFrom<Request> for AuthorListRequest
impl TryFrom<Request> for AuthorListRequest
source§impl TryFrom<Request> for AuthorSetDefaultRequest
impl TryFrom<Request> for AuthorSetDefaultRequest
source§impl TryFrom<Request> for CloseRequest
impl TryFrom<Request> for CloseRequest
source§impl TryFrom<Request> for CreateRequest
impl TryFrom<Request> for CreateRequest
source§impl TryFrom<Request> for DelRequest
impl TryFrom<Request> for DelRequest
source§impl TryFrom<Request> for DocListRequest
impl TryFrom<Request> for DocListRequest
source§impl TryFrom<Request> for DocSubscribeRequest
impl TryFrom<Request> for DocSubscribeRequest
source§impl TryFrom<Request> for DropRequest
impl TryFrom<Request> for DropRequest
source§impl TryFrom<Request> for ExportFileRequest
impl TryFrom<Request> for ExportFileRequest
source§impl TryFrom<Request> for GetDownloadPolicyRequest
impl TryFrom<Request> for GetDownloadPolicyRequest
source§impl TryFrom<Request> for GetExactRequest
impl TryFrom<Request> for GetExactRequest
source§impl TryFrom<Request> for GetManyRequest
impl TryFrom<Request> for GetManyRequest
source§impl TryFrom<Request> for GetSyncPeersRequest
impl TryFrom<Request> for GetSyncPeersRequest
source§impl TryFrom<Request> for ImportFileRequest
impl TryFrom<Request> for ImportFileRequest
source§impl TryFrom<Request> for ImportRequest
impl TryFrom<Request> for ImportRequest
source§impl TryFrom<Request> for LeaveRequest
impl TryFrom<Request> for LeaveRequest
source§impl TryFrom<Request> for OpenRequest
impl TryFrom<Request> for OpenRequest
source§impl TryFrom<Request> for SetDownloadPolicyRequest
impl TryFrom<Request> for SetDownloadPolicyRequest
source§impl TryFrom<Request> for SetHashRequest
impl TryFrom<Request> for SetHashRequest
source§impl TryFrom<Request> for SetRequest
impl TryFrom<Request> for SetRequest
source§impl TryFrom<Request> for StartSyncRequest
impl TryFrom<Request> for StartSyncRequest
Auto Trait Implementations§
impl !Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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