Struct varlink::MethodCall[][src]

pub struct MethodCall<MRequest, MReply, MError> where
    MRequest: Serialize,
    MReply: DeserializeOwned,
    MError: From<Error>, 
{ /* fields omitted */ }

Implementations

impl<MRequestParameters, MReply, MError> MethodCall<MRequestParameters, MReply, MError> where
    MRequestParameters: Serialize,
    MReply: DeserializeOwned,
    MError: From<Error>, 
[src]

pub fn new<S: Into<Cow<'static, str>>>(
    connection: Arc<RwLock<Connection>>,
    method: S,
    parameters: MRequestParameters
) -> Self
[src]

pub fn call(&mut self) -> Result<MReply, MError>[src]

pub fn upgrade(&mut self) -> Result<MReply, MError>[src]

pub fn oneway(&mut self) -> Result<(), MError>[src]

pub fn more(&mut self) -> Result<&mut Self, MError>[src]

pub fn recv(&mut self) -> Result<MReply, MError>[src]

Trait Implementations

impl<MRequest, MReply, MError> Iterator for MethodCall<MRequest, MReply, MError> where
    MRequest: Serialize,
    MReply: DeserializeOwned,
    MError: From<Error>, 
[src]

type Item = Result<MReply, MError>

The type of the elements being iterated over.

Auto Trait Implementations

impl<MRequest, MReply, MError> !RefUnwindSafe for MethodCall<MRequest, MReply, MError>

impl<MRequest, MReply, MError> Send for MethodCall<MRequest, MReply, MError> where
    MError: Send,
    MReply: Send,
    MRequest: Send

impl<MRequest, MReply, MError> Sync for MethodCall<MRequest, MReply, MError> where
    MError: Sync,
    MReply: Sync,
    MRequest: Sync

impl<MRequest, MReply, MError> Unpin for MethodCall<MRequest, MReply, MError> where
    MError: Unpin,
    MReply: Unpin,
    MRequest: Unpin

impl<MRequest, MReply, MError> !UnwindSafe for MethodCall<MRequest, MReply, MError>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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