pub enum RpcSignatureLayout {
SingleLine,
BreakBeforeReturns,
}Expand description
Whether an rpc signature may break when it does not fit.
Variants§
SingleLine
rpc Name(Request) returns (Response) stays on one line whatever
its width.
BreakBeforeReturns
returns (Response) moves to an indented line when the signature
does not fit.
Trait Implementations§
Source§impl Clone for RpcSignatureLayout
impl Clone for RpcSignatureLayout
impl Copy for RpcSignatureLayout
Source§impl Debug for RpcSignatureLayout
impl Debug for RpcSignatureLayout
Source§impl Default for RpcSignatureLayout
impl Default for RpcSignatureLayout
Source§impl<'de> Deserialize<'de> for RpcSignatureLayout
impl<'de> Deserialize<'de> for RpcSignatureLayout
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
impl Eq for RpcSignatureLayout
Source§impl PartialEq for RpcSignatureLayout
impl PartialEq for RpcSignatureLayout
impl StructuralPartialEq for RpcSignatureLayout
Auto Trait Implementations§
impl Freeze for RpcSignatureLayout
impl RefUnwindSafe for RpcSignatureLayout
impl Send for RpcSignatureLayout
impl Sync for RpcSignatureLayout
impl Unpin for RpcSignatureLayout
impl UnsafeUnpin for RpcSignatureLayout
impl UnwindSafe for RpcSignatureLayout
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