Trait citadel_sdk::prelude::ObjectSource

pub trait ObjectSource:
    Send
    + Sync
    + 'static {
    // Required methods
    fn try_get_stream(
        &mut self,
    ) -> Result<Box<dyn FixedSizedSource>, CryptError>;
    fn get_source_name(&self) -> Result<String, CryptError>;
    fn path(&self) -> Option<PathBuf>;
}

Required Methods§

fn try_get_stream(&mut self) -> Result<Box<dyn FixedSizedSource>, CryptError>

fn get_source_name(&self) -> Result<String, CryptError>

fn path(&self) -> Option<PathBuf>

Implementations on Foreign Types§

§

impl ObjectSource for &'static str

§

fn try_get_stream(&mut self) -> Result<Box<dyn FixedSizedSource>, CryptError>

§

fn get_source_name(&self) -> Result<String, CryptError>

§

fn path(&self) -> Option<PathBuf>

§

impl ObjectSource for String

§

fn try_get_stream(&mut self) -> Result<Box<dyn FixedSizedSource>, CryptError>

§

fn get_source_name(&self) -> Result<String, CryptError>

§

fn path(&self) -> Option<PathBuf>

§

impl ObjectSource for PathBuf

§

fn try_get_stream(&mut self) -> Result<Box<dyn FixedSizedSource>, CryptError>

§

fn get_source_name(&self) -> Result<String, CryptError>

§

fn path(&self) -> Option<PathBuf>

§

impl<T> ObjectSource for Box<T>
where T: ObjectSource + ?Sized, Box<T>: Send + Sync + 'static,

§

fn try_get_stream(&mut self) -> Result<Box<dyn FixedSizedSource>, CryptError>

§

fn get_source_name(&self) -> Result<String, CryptError>

§

fn path(&self) -> Option<PathBuf>

Implementors§

§

impl ObjectSource for BytesSource