Struct bitcoin::network::message::CommandString [−][src]
pub struct CommandString(_);
Serializer for command string
Implementations
impl CommandString
[src]
impl CommandString
[src]pub fn try_from<S: Into<Cow<'static, str>>>(s: S) -> Result<CommandString, ()>
[src]
Convert from various string types into a CommandString.
Supported types are:
&'static str
String
Returns an empty error if and only if the string is larger than 12 characters in length.
Trait Implementations
impl Clone for CommandString
[src]
impl Clone for CommandString
[src]fn clone(&self) -> CommandString
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Decodable for CommandString
[src]
impl Decodable for CommandString
[src]fn consensus_decode<D: Read>(d: D) -> Result<Self, Error>
[src]
impl Encodable for CommandString
[src]
impl Encodable for CommandString
[src]impl PartialEq<CommandString> for CommandString
[src]
impl PartialEq<CommandString> for CommandString
[src]