pub struct Disconnect<'a> { /* private fields */ }Expand description
Builder for Client::disconnect
Implementations§
Source§impl<'a> Disconnect<'a>
impl<'a> Disconnect<'a>
pub fn new(client: &'a Client) -> Self
pub fn channel<V>(self, value: V) -> Selfwhere
V: TryInto<ChannelName>,
pub fn body<V>(self, value: V) -> Selfwhere
V: TryInto<ChannelDisconnectRequest>,
<V as TryInto<ChannelDisconnectRequest>>::Error: Display,
pub fn body_map<F>(self, f: F) -> Self
Sourcepub async fn send(
self,
) -> Result<ResponseValue<ChannelDisconnectResponse>, Error<()>>
pub async fn send( self, ) -> Result<ResponseValue<ChannelDisconnectResponse>, Error<()>>
Sends a POST request to /channels/{channel}/disconnect
Trait Implementations§
Source§impl<'a> Clone for Disconnect<'a>
impl<'a> Clone for Disconnect<'a>
Source§fn clone(&self) -> Disconnect<'a>
fn clone(&self) -> Disconnect<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> !RefUnwindSafe for Disconnect<'a>
impl<'a> !UnwindSafe for Disconnect<'a>
impl<'a> Freeze for Disconnect<'a>
impl<'a> Send for Disconnect<'a>
impl<'a> Sync for Disconnect<'a>
impl<'a> Unpin for Disconnect<'a>
impl<'a> UnsafeUnpin for Disconnect<'a>
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