pub fn from(reader: Reader<Owned>) -> Result<SharedContainerLog> {
        let drivers = reader
            .iter()
            .flat_map(|x| -> Result<_> {
                Ok(match x.get_type()? {
                    Type::ContainerRuntimeInterface => {
                        LogDriver::ContainerRuntimeInterface(CriLogger::new(x.get_path()?, None)?)
                    }
                })
            })
            .collect();
        Ok(Arc::new(RwLock::new(Self { drivers })))
    }
/// Create a new SharedContainerLog from an capnp owned reader.
Create a new SharedContainerLog from an capnp owned reader.
Create a new SharedContainerLog from an capnp owned reader .
pub fn from(reader: Reader<Owned>) -> Result<SharedContainerLog> {
        let drivers = reader
            .iter()
            .flat_map(|x| -> Result<_> {
                Ok(match x.get_type()? {
                    Type::ContainerRuntimeInterface => {
                        LogDriver::ContainerRuntimeInterface(CriLogger::new(x.get_path()?, None)?)
                    }
                })
            })
            .collect();
        Ok(Arc::new(RwLock::new(Self { drivers })))
    }
pub fn from ( reader : Reader < Owned > ) -> Result < SharedContainerLog > { let drivers = reader . iter ( ) . flat_map ( | x | -> Result < _ > { Ok ( match x . get_type ( ) ? { Type :: ContainerRuntimeInterface => { LogDriver :: ContainerRuntimeInterface ( CriLogger :: new ( x . get_path ( ) ? , None ) ? ) } } ) } ) . collect ( ) ; Ok ( Arc :: new ( RwLock :: new ( Self { drivers } ) ) ) }
Create a new SharedContainerLog from an capnp owned reader.
Create a new SharedContainerLog from an capnp owned reader .
reader
Reader<Owned>
reader
Reader<Owned>