iroh_docs::rpc::proto

Enum Request

Source
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§

Trait Implementations§

Source§

impl Debug for Request

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Request

Source§

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 Display for Request

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl From<AuthorCreateRequest> for Request

Source§

fn from(value: AuthorCreateRequest) -> Self

Converts to this type from the input type.
Source§

impl From<AuthorDeleteRequest> for Request

Source§

fn from(value: AuthorDeleteRequest) -> Self

Converts to this type from the input type.
Source§

impl From<AuthorExportRequest> for Request

Source§

fn from(value: AuthorExportRequest) -> Self

Converts to this type from the input type.
Source§

impl From<AuthorGetDefaultRequest> for Request

Source§

fn from(value: AuthorGetDefaultRequest) -> Self

Converts to this type from the input type.
Source§

impl From<AuthorImportRequest> for Request

Source§

fn from(value: AuthorImportRequest) -> Self

Converts to this type from the input type.
Source§

impl From<AuthorListRequest> for Request

Source§

fn from(value: AuthorListRequest) -> Self

Converts to this type from the input type.
Source§

impl From<AuthorSetDefaultRequest> for Request

Source§

fn from(value: AuthorSetDefaultRequest) -> Self

Converts to this type from the input type.
Source§

impl From<CloseRequest> for Request

Source§

fn from(value: CloseRequest) -> Self

Converts to this type from the input type.
Source§

impl From<CreateRequest> for Request

Source§

fn from(value: CreateRequest) -> Self

Converts to this type from the input type.
Source§

impl From<DelRequest> for Request

Source§

fn from(value: DelRequest) -> Self

Converts to this type from the input type.
Source§

impl From<DocListRequest> for Request

Source§

fn from(value: DocListRequest) -> Self

Converts to this type from the input type.
Source§

impl From<DocSubscribeRequest> for Request

Source§

fn from(value: DocSubscribeRequest) -> Self

Converts to this type from the input type.
Source§

impl From<DropRequest> for Request

Source§

fn from(value: DropRequest) -> Self

Converts to this type from the input type.
Source§

impl From<ExportFileRequest> for Request

Source§

fn from(value: ExportFileRequest) -> Self

Converts to this type from the input type.
Source§

impl From<GetDownloadPolicyRequest> for Request

Source§

fn from(value: GetDownloadPolicyRequest) -> Self

Converts to this type from the input type.
Source§

impl From<GetExactRequest> for Request

Source§

fn from(value: GetExactRequest) -> Self

Converts to this type from the input type.
Source§

impl From<GetManyRequest> for Request

Source§

fn from(value: GetManyRequest) -> Self

Converts to this type from the input type.
Source§

impl From<GetSyncPeersRequest> for Request

Source§

fn from(value: GetSyncPeersRequest) -> Self

Converts to this type from the input type.
Source§

impl From<ImportFileRequest> for Request

Source§

fn from(value: ImportFileRequest) -> Self

Converts to this type from the input type.
Source§

impl From<ImportRequest> for Request

Source§

fn from(value: ImportRequest) -> Self

Converts to this type from the input type.
Source§

impl From<LeaveRequest> for Request

Source§

fn from(value: LeaveRequest) -> Self

Converts to this type from the input type.
Source§

impl From<OpenRequest> for Request

Source§

fn from(value: OpenRequest) -> Self

Converts to this type from the input type.
Source§

impl From<SetDownloadPolicyRequest> for Request

Source§

fn from(value: SetDownloadPolicyRequest) -> Self

Converts to this type from the input type.
Source§

impl From<SetHashRequest> for Request

Source§

fn from(value: SetHashRequest) -> Self

Converts to this type from the input type.
Source§

impl From<SetRequest> for Request

Source§

fn from(value: SetRequest) -> Self

Converts to this type from the input type.
Source§

impl From<ShareRequest> for Request

Source§

fn from(value: ShareRequest) -> Self

Converts to this type from the input type.
Source§

impl From<StartSyncRequest> for Request

Source§

fn from(value: StartSyncRequest) -> Self

Converts to this type from the input type.
Source§

impl From<StatusRequest> for Request

Source§

fn from(value: StatusRequest) -> Self

Converts to this type from the input type.
Source§

impl Serialize for Request

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl<'a> TryFrom<&'a Request> for &'a AuthorCreateRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a AuthorDeleteRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a AuthorExportRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a AuthorGetDefaultRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a AuthorImportRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a AuthorListRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a AuthorSetDefaultRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a CloseRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a CreateRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a DelRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a DocListRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a DocSubscribeRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a DropRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a ExportFileRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a GetDownloadPolicyRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a GetExactRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a GetManyRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a GetSyncPeersRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a ImportFileRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a ImportRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a LeaveRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a OpenRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a SetDownloadPolicyRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a SetHashRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a SetRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a ShareRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a StartSyncRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl<'a> TryFrom<&'a Request> for &'a StatusRequest

Source§

type Error = &'a Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: &'a Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for AuthorCreateRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for AuthorDeleteRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for AuthorExportRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for AuthorGetDefaultRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for AuthorImportRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for AuthorListRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for AuthorSetDefaultRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for CloseRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for CreateRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for DelRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for DocListRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for DocSubscribeRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for DropRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for ExportFileRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for GetDownloadPolicyRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for GetExactRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for GetManyRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for GetSyncPeersRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for ImportFileRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for ImportRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for LeaveRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for OpenRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for SetDownloadPolicyRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for SetHashRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for SetRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for ShareRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for StartSyncRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Request> for StatusRequest

Source§

type Error = Request

The type returned in the event of a conversion error.
Source§

fn try_from(value: Request) -> Result<Self, Self::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

§

impl<T> ErasedDestructor for T
where T: 'static,

§

impl<T> MaybeSendSync for T

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,