pub trait SvidRefSource {
type Item: Svid;
// Required method
fn get_svid_ref(
&self,
) -> Result<Option<&Self::Item>, Box<dyn Error + Send + Sync + 'static>>;
}Expand description
Represents a source of SPIFFE SVIDs.
Required Associated Types§
Required Methods§
Sourcefn get_svid_ref(
&self,
) -> Result<Option<&Self::Item>, Box<dyn Error + Send + Sync + 'static>>
fn get_svid_ref( &self, ) -> Result<Option<&Self::Item>, Box<dyn Error + Send + Sync + 'static>>
Returns an SVID reference.
If it cannot be found an SVID in the source, it returns Ok(None).
If there’s is an error in source fetching the SVID, it returns an Err<Box<dyn Error + Send + Sync + 'static>>.