Enum decthings_api::RpcProtocol
source · pub enum RpcProtocol {
Http,
Ws,
WsIfAvailableOtherwiseNone,
}
Expand description
The protocol to use for a RPC request.
Variants§
Http
Force use of HTTP.
Ws
Force use of WebSocket. If no WebSocket is connected, a new one will be created.
WsIfAvailableOtherwiseNone
Use WebSocket if one is connected, otherwise do not send the request.
Trait Implementations§
source§impl Clone for RpcProtocol
impl Clone for RpcProtocol
source§fn clone(&self) -> RpcProtocol
fn clone(&self) -> RpcProtocol
Returns a copy of the value. Read more
1.0.0 · 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 Freeze for RpcProtocol
impl RefUnwindSafe for RpcProtocol
impl Send for RpcProtocol
impl Sync for RpcProtocol
impl Unpin for RpcProtocol
impl UnwindSafe for RpcProtocol
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