Struct git_transport::client::Capabilities [−][src]
pub struct Capabilities { /* fields omitted */ }
Expand description
A structure to represent multiple capabilities or features supported by the server.
Implementations
Parse capabilities from the given bytes
.
Useful in case they are encoded within a ref
behind a null byte.
Parse capabilities from the given a first_line
and the rest of the lines as single newline
separated string via remaining_lines
.
Useful for parsing capabilities from a data sent from a server, and to avoid having to deal with blocking and async traits for as long as possible. There is no value in parsing a few bytes in a non-blocking fashion.
Returns true of the given feature
is mentioned in this list of capabilities.
Returns the capability with name
.
Returns an iterator over all capabilities.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnwindSafe for Capabilities
Blanket Implementations
Mutably borrows from an owned value. Read more