Trait Lock

Source
pub trait Lock {
    // Required methods
    fn unlock(&self) -> Result<(), Error>;
    fn id(&self) -> String;
    fn path(&self) -> &Bytes;
    fn formatted_timestamp(&self) -> String;
    fn ownername(&self) -> &str;
    fn as_lock_spec(&self, owner_id: bool) -> Result<Vec<Bytes>, Error>;

    // Provided method
    fn as_arguments(&self) -> Vec<Bytes> { ... }
}

Required Methods§

Source

fn unlock(&self) -> Result<(), Error>

Source

fn id(&self) -> String

Source

fn path(&self) -> &Bytes

Source

fn formatted_timestamp(&self) -> String

Source

fn ownername(&self) -> &str

Source

fn as_lock_spec(&self, owner_id: bool) -> Result<Vec<Bytes>, Error>

Provided Methods§

Implementors§